#include <stdlib.h>
#include <stdio.h>

void swap(int *p, int *q);

int main(void)
{
	int n,m;
	printf("Ingrese 2 numeros: ");
	scanf("%i %i", &n, &m);
	printf("n=%i m=%i\n", n, m);
	swap(&n,&m);
	printf("n=%i m=%i\n", n, m);
return 0;
}

void swap(int *p, int *q)
{
	int temp;
	temp = *p;
	*p = *q;
	*q = temp;
}

